// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2024-11-01",
  // ssr: false,
  devtools: { enabled: true, timeline: { enabled: true } },
  modules: [
    "@nuxt/eslint",
    "@nuxtjs/tailwindcss",
    "nuxt-lodash",
    "@nuxt/image",
    "nuxt-i18n-micro",
    "@vant/nuxt",
    "@pinia/nuxt",
    "pinia-plugin-persistedstate",
    "@nuxt/icon",
  ],
  devServer: {
    host: "192.168.75.129",
    port: 3000,
    https: false,
  },
  runtimeConfig: {
    public: {
      baseURL: "http://127.0.0.1:4523/m1/5626546-5306215-default/api/",
      timeOut: 3000,
      tokenKey: "userAgent-token",
      tokenKeyPrefix: "Bearer ",
      // public backicon configuration settings
      backIcon: "revoke",
    },
  },
  lodash: {
    prefix: "useLodash",
    upperAfterPrefix: true,
    alias: [],
  },
  i18n: {
    locales: [
      { code: "en", iso: "en-US", dir: "ltr", displayName: "English" },
      { code: "zh", iso: "zh-CN", dir: "ltr", displayName: "简体中文" },
    ],
    defaultLocale: "zh",
    translationDir: "./assets/locales",
    meta: true,
  },
  css: ["~/assets/styles/public.scss"],
  image: {},
});
